<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<h:head>
		<title>Nova Estado</title>
	</h:head>
	<h:body>
	<table width="100%">
				<tr>
					<td><ui:include src="menuPrincipal.xhtml" /></td>
				</tr>
	</table>
		<h:form id="incluirPais">
		
		<table width="40%" align="center">
				<tr>
					<td><p:panel header="Novo País">
							<h:panelGrid columns="2">

								<h:outputText value="Nome do País: " />
								<p:inputText value="#{paisMB.pais.nome}" maxlength="20"
									size="30" title="Nome do País" />

								<h:outputText value="Sigla: " />
								<p:inputText value="#{paisMB.pais.sigla}" maxlength="2"
									size="30" title="Sigla do País" />

								<p:commandButton type="submit" action="#{paisMB.incluir}"
									value="Gravar" />
								<p:commandButton type="reset" value="Limpar" />

							</h:panelGrid>
							<font color="red"> <h:message for="msgInclusaoPais"
									id="mensagem" /> </font>
						</p:panel></td>
				</tr>
			</table>
		</h:form>
</h:body>
</html>
